<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>ADC: ADC Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ADC
   &#160;<span id="projectnumber">9.2</span>
   </div>
   <div id="projectbrief">Analog to Digital Conversor library for the Teensy 4 microprocessor</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('class_a_d_c.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="class_a_d_c-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">ADC Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_a_d_c_8h_source.html">ADC.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_a_d_c_1_1_sync__result.html">Sync_result</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Struct for synchronous measurements.  <a href="struct_a_d_c_1_1_sync__result.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a60b6e21403b1f30984f63832c0562960"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#a60b6e21403b1f30984f63832c0562960">ADC</a> ()</td></tr>
<tr class="separator:a60b6e21403b1f30984f63832c0562960"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa65014de31051e06a469982ca286496b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#aa65014de31051e06a469982ca286496b">resetError</a> ()</td></tr>
<tr class="separator:aa65014de31051e06a469982ca286496b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">ADC settings</div></td></tr>
<tr class="memitem:a4fe2513725fa0099460fc711b037f1e5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#a4fe2513725fa0099460fc711b037f1e5">setReference</a> (<a class="el" href="namespace_a_d_c__settings.html#a5f42fd9e070e88475ec7cee39bbf4f8d">ADC_REFERENCE</a> type)</td></tr>
<tr class="memdesc:a4fe2513725fa0099460fc711b037f1e5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the voltage reference for all ADCs, default is vcc.  <a href="class_a_d_c.html#a4fe2513725fa0099460fc711b037f1e5">More...</a><br /></td></tr>
<tr class="separator:a4fe2513725fa0099460fc711b037f1e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b8f4f571b7729d9da50b72ab93ec023"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#a6b8f4f571b7729d9da50b72ab93ec023">setResolution</a> (uint8_t bits)</td></tr>
<tr class="memdesc:a6b8f4f571b7729d9da50b72ab93ec023"><td class="mdescLeft">&#160;</td><td class="mdescRight">Change the resolution for all ADCs.  <a href="class_a_d_c.html#a6b8f4f571b7729d9da50b72ab93ec023">More...</a><br /></td></tr>
<tr class="separator:a6b8f4f571b7729d9da50b72ab93ec023"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acca4ab7812f804a09b28d7a76daff8fa"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#acca4ab7812f804a09b28d7a76daff8fa">setConversionSpeed</a> (<a class="el" href="namespace_a_d_c__settings.html#aab853fc1fcb1992fd5d51408adf7688e">ADC_CONVERSION_SPEED</a> speed)</td></tr>
<tr class="memdesc:acca4ab7812f804a09b28d7a76daff8fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the conversion speed for all ADCs.  <a href="class_a_d_c.html#acca4ab7812f804a09b28d7a76daff8fa">More...</a><br /></td></tr>
<tr class="separator:acca4ab7812f804a09b28d7a76daff8fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7dad7a76bdd4965eced74692a5de886"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#ac7dad7a76bdd4965eced74692a5de886">setSamplingSpeed</a> (<a class="el" href="namespace_a_d_c__settings.html#af0d80a1aae7288f77b13f0e01d9da0d3">ADC_SAMPLING_SPEED</a> speed)</td></tr>
<tr class="memdesc:ac7dad7a76bdd4965eced74692a5de886"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the sampling speed for all ADCs.  <a href="class_a_d_c.html#ac7dad7a76bdd4965eced74692a5de886">More...</a><br /></td></tr>
<tr class="separator:ac7dad7a76bdd4965eced74692a5de886"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa80d9ebc6a60605e1b9a25f2db8734e9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#aa80d9ebc6a60605e1b9a25f2db8734e9">setAveraging</a> (uint8_t num)</td></tr>
<tr class="memdesc:aa80d9ebc6a60605e1b9a25f2db8734e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the number of averages for all ADCs.  <a href="class_a_d_c.html#aa80d9ebc6a60605e1b9a25f2db8734e9">More...</a><br /></td></tr>
<tr class="separator:aa80d9ebc6a60605e1b9a25f2db8734e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af81b3c7805c688558ab25d66a8adf982"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#af81b3c7805c688558ab25d66a8adf982">enableInterrupts</a> (void(*isr)(void), uint8_t priority=255)</td></tr>
<tr class="memdesc:af81b3c7805c688558ab25d66a8adf982"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable interrupts for all ADCs.  <a href="class_a_d_c.html#af81b3c7805c688558ab25d66a8adf982">More...</a><br /></td></tr>
<tr class="separator:af81b3c7805c688558ab25d66a8adf982"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8acae7988973bdede138deea567623a"><td class="memItemLeft" align="right" valign="top"><a id="ad8acae7988973bdede138deea567623a"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#ad8acae7988973bdede138deea567623a">disableInterrupts</a> ()</td></tr>
<tr class="memdesc:ad8acae7988973bdede138deea567623a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disable interrupts for all ADCs. <br /></td></tr>
<tr class="separator:ad8acae7988973bdede138deea567623a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10b9e674ed487b81160687e38fafbb59"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#a10b9e674ed487b81160687e38fafbb59">enableDMA</a> ()</td></tr>
<tr class="memdesc:a10b9e674ed487b81160687e38fafbb59"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable DMA request for all ADCs.  <a href="class_a_d_c.html#a10b9e674ed487b81160687e38fafbb59">More...</a><br /></td></tr>
<tr class="separator:a10b9e674ed487b81160687e38fafbb59"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58af22e8f95c1d2b1560153f906d1038"><td class="memItemLeft" align="right" valign="top"><a id="a58af22e8f95c1d2b1560153f906d1038"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#a58af22e8f95c1d2b1560153f906d1038">disableDMA</a> ()</td></tr>
<tr class="memdesc:a58af22e8f95c1d2b1560153f906d1038"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disable DMA request for all ADCs. <br /></td></tr>
<tr class="separator:a58af22e8f95c1d2b1560153f906d1038"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0737a1d21656cccc47851b85f4b3fc7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#ad0737a1d21656cccc47851b85f4b3fc7">enableCompare</a> (int16_t compValue, bool greaterThan)</td></tr>
<tr class="memdesc:ad0737a1d21656cccc47851b85f4b3fc7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable the compare function to a single value.  <a href="class_a_d_c.html#ad0737a1d21656cccc47851b85f4b3fc7">More...</a><br /></td></tr>
<tr class="separator:ad0737a1d21656cccc47851b85f4b3fc7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa2b5a656add303432afcd298f1a52110"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#aa2b5a656add303432afcd298f1a52110">enableCompareRange</a> (int16_t lowerLimit, int16_t upperLimit, bool insideRange, bool inclusive)</td></tr>
<tr class="memdesc:aa2b5a656add303432afcd298f1a52110"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable the compare function to a range.  <a href="class_a_d_c.html#aa2b5a656add303432afcd298f1a52110">More...</a><br /></td></tr>
<tr class="separator:aa2b5a656add303432afcd298f1a52110"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad48e3b4b69170965fc4fe70ef042c099"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#ad48e3b4b69170965fc4fe70ef042c099">disableCompare</a> ()</td></tr>
<tr class="memdesc:ad48e3b4b69170965fc4fe70ef042c099"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disable the compare function.  <a href="class_a_d_c.html#ad48e3b4b69170965fc4fe70ef042c099">More...</a><br /></td></tr>
<tr class="separator:ad48e3b4b69170965fc4fe70ef042c099"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Blocking conversion methods</div></td></tr>
<tr class="memitem:aaf6079870b115d8b029d3613d44091dd"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#aaf6079870b115d8b029d3613d44091dd">analogRead</a> (uint8_t pin, int8_t adc_num=-1)</td></tr>
<tr class="memdesc:aaf6079870b115d8b029d3613d44091dd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the analog value of the pin.  <a href="class_a_d_c.html#aaf6079870b115d8b029d3613d44091dd">More...</a><br /></td></tr>
<tr class="separator:aaf6079870b115d8b029d3613d44091dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4196bada3d9d28af2604175a8a79d872"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#a4196bada3d9d28af2604175a8a79d872">analogRead</a> (<a class="el" href="namespace_a_d_c__settings.html#a8c2a64f3fca3ac6b82e8df8cf44f6ca2">ADC_INTERNAL_SOURCE</a> pin, int8_t adc_num=-1)</td></tr>
<tr class="separator:a4196bada3d9d28af2604175a8a79d872"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Non-blocking conversion methods</div></td></tr>
<tr class="memitem:a113479488fae5f5407f884dd95fbec72"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#a113479488fae5f5407f884dd95fbec72">startSingleRead</a> (uint8_t pin, int8_t adc_num=-1)</td></tr>
<tr class="memdesc:a113479488fae5f5407f884dd95fbec72"><td class="mdescLeft">&#160;</td><td class="mdescRight">Starts an analog measurement on the pin and enables interrupts.  <a href="class_a_d_c.html#a113479488fae5f5407f884dd95fbec72">More...</a><br /></td></tr>
<tr class="separator:a113479488fae5f5407f884dd95fbec72"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee7423bfcbb03465bb0bd1e3c6474452"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#aee7423bfcbb03465bb0bd1e3c6474452">readSingle</a> (int8_t adc_num=-1)</td></tr>
<tr class="memdesc:aee7423bfcbb03465bb0bd1e3c6474452"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads the analog value of a single conversion.  <a href="class_a_d_c.html#aee7423bfcbb03465bb0bd1e3c6474452">More...</a><br /></td></tr>
<tr class="separator:aee7423bfcbb03465bb0bd1e3c6474452"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Continuous conversion methods</div></td></tr>
<tr class="memitem:ad592f87ec644457b5056ae41c645ac0a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#ad592f87ec644457b5056ae41c645ac0a">startContinuous</a> (uint8_t pin, int8_t adc_num=-1)</td></tr>
<tr class="memdesc:ad592f87ec644457b5056ae41c645ac0a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Starts continuous conversion on the pin.  <a href="class_a_d_c.html#ad592f87ec644457b5056ae41c645ac0a">More...</a><br /></td></tr>
<tr class="separator:ad592f87ec644457b5056ae41c645ac0a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a749efc928425a1eea18341ccfafd1819"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#a749efc928425a1eea18341ccfafd1819">analogReadContinuous</a> (int8_t adc_num=-1)</td></tr>
<tr class="memdesc:a749efc928425a1eea18341ccfafd1819"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads the analog value of a continuous conversion.  <a href="class_a_d_c.html#a749efc928425a1eea18341ccfafd1819">More...</a><br /></td></tr>
<tr class="separator:a749efc928425a1eea18341ccfafd1819"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a436e52cf82ca735f636899de670a2f0c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#a436e52cf82ca735f636899de670a2f0c">stopContinuous</a> (int8_t adc_num=-1)</td></tr>
<tr class="memdesc:a436e52cf82ca735f636899de670a2f0c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stops continuous conversion.  <a href="class_a_d_c.html#a436e52cf82ca735f636899de670a2f0c">More...</a><br /></td></tr>
<tr class="separator:a436e52cf82ca735f636899de670a2f0c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Synchronized conversion methods</div></td></tr>
<tr><td colspan="2"><div class="groupText"><p>ADC0 and ADC1 will measure simultaneously </p>
</div></td></tr>
<tr class="memitem:ac8067db45057f691e664f414d1376d1e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_a_d_c_1_1_sync__result.html">Sync_result</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#ac8067db45057f691e664f414d1376d1e">analogSynchronizedRead</a> (uint8_t pin0, uint8_t pin1)</td></tr>
<tr class="separator:ac8067db45057f691e664f414d1376d1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8980e0b1c619d0a39beaf98228053e3d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_a_d_c_1_1_sync__result.html">Sync_result</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#a8980e0b1c619d0a39beaf98228053e3d">analogSyncRead</a> (uint8_t pin0, uint8_t pin1)</td></tr>
<tr class="memdesc:a8980e0b1c619d0a39beaf98228053e3d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Same as analogSynchronizedRead.  <a href="class_a_d_c.html#a8980e0b1c619d0a39beaf98228053e3d">More...</a><br /></td></tr>
<tr class="separator:a8980e0b1c619d0a39beaf98228053e3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acbdb0f3a7419e5a0cd8b2c031dc8b9d7"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#acbdb0f3a7419e5a0cd8b2c031dc8b9d7">startSynchronizedSingleRead</a> (uint8_t pin0, uint8_t pin1)</td></tr>
<tr class="memdesc:acbdb0f3a7419e5a0cd8b2c031dc8b9d7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Starts an analog measurement at the same time on the two <a class="el" href="class_a_d_c.html">ADC</a> modules.  <a href="class_a_d_c.html#acbdb0f3a7419e5a0cd8b2c031dc8b9d7">More...</a><br /></td></tr>
<tr class="separator:acbdb0f3a7419e5a0cd8b2c031dc8b9d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a38d941542bbdbc20c1b9e26a5051094a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_a_d_c_1_1_sync__result.html">Sync_result</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#a38d941542bbdbc20c1b9e26a5051094a">readSynchronizedSingle</a> ()</td></tr>
<tr class="memdesc:a38d941542bbdbc20c1b9e26a5051094a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads the analog value of a single conversion.  <a href="class_a_d_c.html#a38d941542bbdbc20c1b9e26a5051094a">More...</a><br /></td></tr>
<tr class="separator:a38d941542bbdbc20c1b9e26a5051094a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af50305b76bf8798da1dd26f654b4f0e3"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#af50305b76bf8798da1dd26f654b4f0e3">startSynchronizedContinuous</a> (uint8_t pin0, uint8_t pin1)</td></tr>
<tr class="memdesc:af50305b76bf8798da1dd26f654b4f0e3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Starts a continuous conversion in both ADCs simultaneously.  <a href="class_a_d_c.html#af50305b76bf8798da1dd26f654b4f0e3">More...</a><br /></td></tr>
<tr class="separator:af50305b76bf8798da1dd26f654b4f0e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd10f3bc117a244e70e53c3489aa97bc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_a_d_c_1_1_sync__result.html">Sync_result</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#acd10f3bc117a244e70e53c3489aa97bc">readSynchronizedContinuous</a> ()</td></tr>
<tr class="memdesc:acd10f3bc117a244e70e53c3489aa97bc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the values of both ADCs.  <a href="class_a_d_c.html#acd10f3bc117a244e70e53c3489aa97bc">More...</a><br /></td></tr>
<tr class="separator:acd10f3bc117a244e70e53c3489aa97bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac2070250dd4d557b27ec0f4f2b360f21"><td class="memItemLeft" align="right" valign="top"><a id="ac2070250dd4d557b27ec0f4f2b360f21"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#ac2070250dd4d557b27ec0f4f2b360f21">stopSynchronizedContinuous</a> ()</td></tr>
<tr class="memdesc:ac2070250dd4d557b27ec0f4f2b360f21"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stops synchronous continuous conversion. <br /></td></tr>
<tr class="separator:ac2070250dd4d557b27ec0f4f2b360f21"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a0d5b4dd16bbb03082daeeaadafec2474"><td class="memItemLeft" align="right" valign="top"><a id="a0d5b4dd16bbb03082daeeaadafec2474"></a>
<a class="el" href="class_a_d_c___module.html">ADC_Module</a> *const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#a0d5b4dd16bbb03082daeeaadafec2474">adc0</a> = &amp;adc0_obj</td></tr>
<tr class="memdesc:a0d5b4dd16bbb03082daeeaadafec2474"><td class="mdescLeft">&#160;</td><td class="mdescRight">Object to control the ADC0. <br /></td></tr>
<tr class="separator:a0d5b4dd16bbb03082daeeaadafec2474"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f6c4642e9e5400220452feeb6be13b8"><td class="memItemLeft" align="right" valign="top"><a id="a8f6c4642e9e5400220452feeb6be13b8"></a>
<a class="el" href="class_a_d_c___module.html">ADC_Module</a> *const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#a8f6c4642e9e5400220452feeb6be13b8">adc1</a> = &amp;adc1_obj</td></tr>
<tr class="memdesc:a8f6c4642e9e5400220452feeb6be13b8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Object to control the ADC1. <br /></td></tr>
<tr class="separator:a8f6c4642e9e5400220452feeb6be13b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a03e1c7f64c02dec1976810a0a4967cf2"><td class="memItemLeft" align="right" valign="top"><a id="a03e1c7f64c02dec1976810a0a4967cf2"></a>
<a class="el" href="class_a_d_c___module.html">ADC_Module</a> *const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#a03e1c7f64c02dec1976810a0a4967cf2">adc</a> [ADC_NUM_ADCS] = {<a class="el" href="class_a_d_c.html#a0d5b4dd16bbb03082daeeaadafec2474">adc0</a>, <a class="el" href="class_a_d_c.html#a8f6c4642e9e5400220452feeb6be13b8">adc1</a>}</td></tr>
<tr class="memdesc:a03e1c7f64c02dec1976810a0a4967cf2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Array with the <a class="el" href="class_a_d_c.html">ADC</a> Modules. <br /></td></tr>
<tr class="separator:a03e1c7f64c02dec1976810a0a4967cf2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:ab790c1b44b90ff497cbf3e88f4580be8"><td class="memItemLeft" align="right" valign="top">static const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#ab790c1b44b90ff497cbf3e88f4580be8">channel2sc1aADC0</a> [ADC_MAX_PIN+1]</td></tr>
<tr class="memdesc:ab790c1b44b90ff497cbf3e88f4580be8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Translate pin number to SC1A nomenclature.  <a href="class_a_d_c.html#ab790c1b44b90ff497cbf3e88f4580be8">More...</a><br /></td></tr>
<tr class="separator:ab790c1b44b90ff497cbf3e88f4580be8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a756fe8fa6da7ab09cde1f7b27aeffd43"><td class="memItemLeft" align="right" valign="top">static const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#a756fe8fa6da7ab09cde1f7b27aeffd43">channel2sc1aADC1</a> [ADC_MAX_PIN+1]</td></tr>
<tr class="memdesc:a756fe8fa6da7ab09cde1f7b27aeffd43"><td class="mdescLeft">&#160;</td><td class="mdescRight">Translate pin number to SC1A nomenclature.  <a href="class_a_d_c.html#a756fe8fa6da7ab09cde1f7b27aeffd43">More...</a><br /></td></tr>
<tr class="separator:a756fe8fa6da7ab09cde1f7b27aeffd43"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3fc624721f8108ef8b77b45a857bdc6"><td class="memItemLeft" align="right" valign="top">static const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#aa3fc624721f8108ef8b77b45a857bdc6">sc1a2channelADC0</a> [ADC_MAX_PIN+1]</td></tr>
<tr class="memdesc:aa3fc624721f8108ef8b77b45a857bdc6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Translate pin number to SC1A nomenclature for differential pins.  <a href="class_a_d_c.html#aa3fc624721f8108ef8b77b45a857bdc6">More...</a><br /></td></tr>
<tr class="separator:aa3fc624721f8108ef8b77b45a857bdc6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad1ed91f3ef9e283133455802c37c6501"><td class="memItemLeft" align="right" valign="top">static const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_c.html#ad1ed91f3ef9e283133455802c37c6501">sc1a2channelADC1</a> [ADC_MAX_PIN+1]</td></tr>
<tr class="memdesc:ad1ed91f3ef9e283133455802c37c6501"><td class="mdescLeft">&#160;</td><td class="mdescRight">Translate pin number to SC1A nomenclature for differential pins.  <a href="class_a_d_c.html#ad1ed91f3ef9e283133455802c37c6501">More...</a><br /></td></tr>
<tr class="separator:ad1ed91f3ef9e283133455802c37c6501"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Class <a class="el" href="class_a_d_c.html">ADC</a>: Controls the Teensy 3.x, 4 <a class="el" href="class_a_d_c.html">ADC</a> </p>

<p class="definition">Definition at line <a class="el" href="_a_d_c_8h_source.html#l00069">69</a> of file <a class="el" href="_a_d_c_8h_source.html">ADC.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a60b6e21403b1f30984f63832c0562960"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a60b6e21403b1f30984f63832c0562960">&#9670;&nbsp;</a></span>ADC()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ADC::ADC </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Default constructor </p>

<p class="definition">Definition at line <a class="el" href="_a_d_c_8cpp_source.html#l00257">257</a> of file <a class="el" href="_a_d_c_8cpp_source.html">ADC.cpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a4196bada3d9d28af2604175a8a79d872"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4196bada3d9d28af2604175a8a79d872">&#9670;&nbsp;</a></span>analogRead() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int ADC::analogRead </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespace_a_d_c__settings.html#a8c2a64f3fca3ac6b82e8df8cf44f6ca2">ADC_INTERNAL_SOURCE</a>&#160;</td>
          <td class="paramname"><em>pin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8_t&#160;</td>
          <td class="paramname"><em>adc_num</em> = <code>-1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns the analog value of the special internal source, such as the temperature sensor. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pin</td><td>ADC_INTERNAL_SOURCE to read. </td></tr>
    <tr><td class="paramname">adc_num</td><td>ADC_X <a class="el" href="class_a_d_c.html">ADC</a> module </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the value of the pin. </dd></dl>

<p class="definition">Definition at line <a class="el" href="_a_d_c_8h_source.html#l00323">323</a> of file <a class="el" href="_a_d_c_8h_source.html">ADC.h</a>.</p>

</div>
</div>
<a id="aaf6079870b115d8b029d3613d44091dd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf6079870b115d8b029d3613d44091dd">&#9670;&nbsp;</a></span>analogRead() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ADC::analogRead </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>pin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8_t&#160;</td>
          <td class="paramname"><em>adc_num</em> = <code>-1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the analog value of the pin. </p>
<p>It waits until the value is read and then returns the result. If a comparison has been set up and fails, it will return ADC_ERROR_VALUE. This function is interrupt safe, so it will restore the adc to the state it was before being called If more than one <a class="el" href="class_a_d_c.html">ADC</a> exists, it will select the module with less workload, you can force a selection using adc_num. If you select ADC1 in a board with just one <a class="el" href="class_a_d_c.html">ADC</a>, it will return ADC_ERROR_VALUE. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pin</td><td>can be any of the analog pins </td></tr>
    <tr><td class="paramname">adc_num</td><td>ADC_X <a class="el" href="class_a_d_c.html">ADC</a> module </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the analog value of the pin. </dd></dl>

<p class="definition">Definition at line <a class="el" href="_a_d_c_8cpp_source.html#l00284">284</a> of file <a class="el" href="_a_d_c_8cpp_source.html">ADC.cpp</a>.</p>

</div>
</div>
<a id="a749efc928425a1eea18341ccfafd1819"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a749efc928425a1eea18341ccfafd1819">&#9670;&nbsp;</a></span>analogReadContinuous()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ADC::analogReadContinuous </td>
          <td>(</td>
          <td class="paramtype">int8_t&#160;</td>
          <td class="paramname"><em>adc_num</em> = <code>-1</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reads the analog value of a continuous conversion. </p>
<p>Set the continuous conversion with with analogStartContinuous(pin) or startContinuousDifferential(pinP, pinN). If single-ended and 16 bits it's necessary to typecast it to an unsigned type (like uint16_t), otherwise values larger than 3.3/2 V are interpreted as negative! </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">adc_num</td><td>ADC_X <a class="el" href="class_a_d_c.html">ADC</a> module </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the last converted value.</dd></dl>
<p>Set the continuous conversion with with analogStartContinuous(pin) or startContinuousDifferential(pinP, pinN). </p><dl class="section return"><dt>Returns</dt><dd>the last converted value. If single-ended and 16 bits it's necessary to typecast it to an unsigned type (like uint16_t), otherwise values larger than 3.3/2 V are interpreted as negative! </dd></dl>

<p class="definition">Definition at line <a class="el" href="_a_d_c_8cpp_source.html#l00660">660</a> of file <a class="el" href="_a_d_c_8cpp_source.html">ADC.cpp</a>.</p>

</div>
</div>
<a id="ac8067db45057f691e664f414d1376d1e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac8067db45057f691e664f414d1376d1e">&#9670;&nbsp;</a></span>analogSynchronizedRead()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_a_d_c_1_1_sync__result.html">ADC::Sync_result</a> ADC::analogSynchronizedRead </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>pin0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>pin1</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns the analog values of both pins, measured at the same time by the two <a class="el" href="class_a_d_c.html">ADC</a> modules. It waits until the values are read and then returns the result as a struct <a class="el" href="struct_a_d_c_1_1_sync__result.html" title="Struct for synchronous measurements.">Sync_result</a>, use <a class="el" href="struct_a_d_c_1_1_sync__result.html#aa523cf5b3ed9823c0ff672a4b8eb3f4e">Sync_result.result_adc0</a> and <a class="el" href="struct_a_d_c_1_1_sync__result.html#a652c42a16111d4edeb3cd7b324b382c7">Sync_result.result_adc1</a>. If a comparison has been set up and fails, it will return ADC_ERROR_VALUE in both fields of the struct. This function is interrupt safe, so it will restore the adc to the state it was before being called </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pin0</td><td>pin in ADC0 </td></tr>
    <tr><td class="paramname">pin1</td><td>pin in ADC1 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a <a class="el" href="struct_a_d_c_1_1_sync__result.html" title="Struct for synchronous measurements.">Sync_result</a> struct with the result of each <a class="el" href="class_a_d_c.html">ADC</a> value. </dd></dl>

<p class="definition">Definition at line <a class="el" href="_a_d_c_8cpp_source.html#l00700">700</a> of file <a class="el" href="_a_d_c_8cpp_source.html">ADC.cpp</a>.</p>

</div>
</div>
<a id="a8980e0b1c619d0a39beaf98228053e3d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8980e0b1c619d0a39beaf98228053e3d">&#9670;&nbsp;</a></span>analogSyncRead()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_a_d_c_1_1_sync__result.html">Sync_result</a> ADC::analogSyncRead </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>pin0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>pin1</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Same as analogSynchronizedRead. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pin0</td><td>pin in ADC0 </td></tr>
    <tr><td class="paramname">pin1</td><td>pin in ADC1 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a <a class="el" href="struct_a_d_c_1_1_sync__result.html" title="Struct for synchronous measurements.">Sync_result</a> struct with the result of each <a class="el" href="class_a_d_c.html">ADC</a> value. </dd></dl>

<p class="definition">Definition at line <a class="el" href="_a_d_c_8h_source.html#l00467">467</a> of file <a class="el" href="_a_d_c_8h_source.html">ADC.h</a>.</p>

</div>
</div>
<a id="ad48e3b4b69170965fc4fe70ef042c099"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad48e3b4b69170965fc4fe70ef042c099">&#9670;&nbsp;</a></span>disableCompare()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ADC::disableCompare </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Disable the compare function. </p>

<p class="definition">Definition at line <a class="el" href="_a_d_c_8h_source.html#l00266">266</a> of file <a class="el" href="_a_d_c_8h_source.html">ADC.h</a>.</p>

</div>
</div>
<a id="ad0737a1d21656cccc47851b85f4b3fc7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad0737a1d21656cccc47851b85f4b3fc7">&#9670;&nbsp;</a></span>enableCompare()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ADC::enableCompare </td>
          <td>(</td>
          <td class="paramtype">int16_t&#160;</td>
          <td class="paramname"><em>compValue</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>greaterThan</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Enable the compare function to a single value. </p>
<p>A conversion will be completed only when the <a class="el" href="class_a_d_c.html">ADC</a> value is &gt;= compValue (greaterThan=1) or &lt; compValue (greaterThan=0) Call it after changing the resolution Use with interrupts or poll conversion completion with isComplete() </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">compValue</td><td>value to compare </td></tr>
    <tr><td class="paramname">greaterThan</td><td>true or false </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_a_d_c_8h_source.html#l00233">233</a> of file <a class="el" href="_a_d_c_8h_source.html">ADC.h</a>.</p>

</div>
</div>
<a id="aa2b5a656add303432afcd298f1a52110"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa2b5a656add303432afcd298f1a52110">&#9670;&nbsp;</a></span>enableCompareRange()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ADC::enableCompareRange </td>
          <td>(</td>
          <td class="paramtype">int16_t&#160;</td>
          <td class="paramname"><em>lowerLimit</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int16_t&#160;</td>
          <td class="paramname"><em>upperLimit</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>insideRange</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>inclusive</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Enable the compare function to a range. </p>
<p>A conversion will be completed only when the <a class="el" href="class_a_d_c.html">ADC</a> value is inside (insideRange=1) or outside (=0) the range given by (lowerLimit, upperLimit),including (inclusive=1) the limits or not (inclusive=0). See Table 31-78, p. 617 of the freescale manual. Call it after changing the resolution Use with interrupts or poll conversion completion with isComplete() </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">lowerLimit</td><td>lower value to compare </td></tr>
    <tr><td class="paramname">upperLimit</td><td>upper value to compare </td></tr>
    <tr><td class="paramname">insideRange</td><td>true or false </td></tr>
    <tr><td class="paramname">inclusive</td><td>true or false </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_a_d_c_8h_source.html#l00254">254</a> of file <a class="el" href="_a_d_c_8h_source.html">ADC.h</a>.</p>

</div>
</div>
<a id="a10b9e674ed487b81160687e38fafbb59"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a10b9e674ed487b81160687e38fafbb59">&#9670;&nbsp;</a></span>enableDMA()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ADC::enableDMA </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Enable DMA request for all ADCs. </p>
<p>An <a class="el" href="class_a_d_c.html">ADC</a> DMA request will be raised when the conversion is completed (including hardware averages and if the comparison (if any) is true). </p>

<p class="definition">Definition at line <a class="el" href="_a_d_c_8h_source.html#l00205">205</a> of file <a class="el" href="_a_d_c_8h_source.html">ADC.h</a>.</p>

</div>
</div>
<a id="af81b3c7805c688558ab25d66a8adf982"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af81b3c7805c688558ab25d66a8adf982">&#9670;&nbsp;</a></span>enableInterrupts()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ADC::enableInterrupts </td>
          <td>(</td>
          <td class="paramtype">void(*)(void)&#160;</td>
          <td class="paramname"><em>isr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>priority</em> = <code>255</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Enable interrupts for all ADCs. </p>
<p>An IRQ_ADCx Interrupt will be raised when the conversion is completed (including hardware averages and if the comparison (if any) is true). </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">isr</td><td>function (returns void and accepts no arguments) that will be executed after an interrupt. </td></tr>
    <tr><td class="paramname">priority</td><td>Interrupt priority, highest is 0, lowest is 255. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_a_d_c_8h_source.html#l00181">181</a> of file <a class="el" href="_a_d_c_8h_source.html">ADC.h</a>.</p>

</div>
</div>
<a id="aee7423bfcbb03465bb0bd1e3c6474452"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aee7423bfcbb03465bb0bd1e3c6474452">&#9670;&nbsp;</a></span>readSingle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ADC::readSingle </td>
          <td>(</td>
          <td class="paramtype">int8_t&#160;</td>
          <td class="paramname"><em>adc_num</em> = <code>-1</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reads the analog value of a single conversion. </p>
<p>Set the conversion with with startSingleRead(pin) or startSingleDifferential(pinP, pinN). </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">adc_num</td><td>ADC_X <a class="el" href="class_a_d_c.html">ADC</a> module </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the converted value. </dd></dl>

<p class="definition">Definition at line <a class="el" href="_a_d_c_8cpp_source.html#l00526">526</a> of file <a class="el" href="_a_d_c_8cpp_source.html">ADC.cpp</a>.</p>

</div>
</div>
<a id="acd10f3bc117a244e70e53c3489aa97bc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acd10f3bc117a244e70e53c3489aa97bc">&#9670;&nbsp;</a></span>readSynchronizedContinuous()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_a_d_c_1_1_sync__result.html">ADC::Sync_result</a> ADC::readSynchronizedContinuous </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the values of both ADCs. </p>
<dl class="section return"><dt>Returns</dt><dd>the converted value. </dd></dl>

<p class="definition">Definition at line <a class="el" href="_a_d_c_8cpp_source.html#l01087">1087</a> of file <a class="el" href="_a_d_c_8cpp_source.html">ADC.cpp</a>.</p>

</div>
</div>
<a id="a38d941542bbdbc20c1b9e26a5051094a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a38d941542bbdbc20c1b9e26a5051094a">&#9670;&nbsp;</a></span>readSynchronizedSingle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_a_d_c_1_1_sync__result.html">ADC::Sync_result</a> ADC::readSynchronizedSingle </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reads the analog value of a single conversion. </p>
<dl class="section return"><dt>Returns</dt><dd>the converted value. </dd></dl>

<p class="definition">Definition at line <a class="el" href="_a_d_c_8cpp_source.html#l01012">1012</a> of file <a class="el" href="_a_d_c_8cpp_source.html">ADC.cpp</a>.</p>

</div>
</div>
<a id="aa65014de31051e06a469982ca286496b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa65014de31051e06a469982ca286496b">&#9670;&nbsp;</a></span>resetError()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ADC::resetError </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>ERRORS ///// Resets all errors from all ADCs, if any. </p>

<p class="definition">Definition at line <a class="el" href="_a_d_c_8h_source.html#l00578">578</a> of file <a class="el" href="_a_d_c_8h_source.html">ADC.h</a>.</p>

</div>
</div>
<a id="aa80d9ebc6a60605e1b9a25f2db8734e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa80d9ebc6a60605e1b9a25f2db8734e9">&#9670;&nbsp;</a></span>setAveraging()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ADC::setAveraging </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>num</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set the number of averages for all ADCs. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">num</td><td>can be 0, 4, 8, 16 or 32. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_a_d_c_8h_source.html#l00165">165</a> of file <a class="el" href="_a_d_c_8h_source.html">ADC.h</a>.</p>

</div>
</div>
<a id="acca4ab7812f804a09b28d7a76daff8fa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acca4ab7812f804a09b28d7a76daff8fa">&#9670;&nbsp;</a></span>setConversionSpeed()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ADC::setConversionSpeed </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespace_a_d_c__settings.html#aab853fc1fcb1992fd5d51408adf7688e">ADC_CONVERSION_SPEED</a>&#160;</td>
          <td class="paramname"><em>speed</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Sets the conversion speed for all ADCs. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">speed</td><td>can be any from the <a class="el" href="namespace_a_d_c__settings.html#aab853fc1fcb1992fd5d51408adf7688e">ADC_CONVERSION_SPEED</a> enum. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_a_d_c_8h_source.html#l00139">139</a> of file <a class="el" href="_a_d_c_8h_source.html">ADC.h</a>.</p>

</div>
</div>
<a id="a4fe2513725fa0099460fc711b037f1e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4fe2513725fa0099460fc711b037f1e5">&#9670;&nbsp;</a></span>setReference()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ADC::setReference </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespace_a_d_c__settings.html#a5f42fd9e070e88475ec7cee39bbf4f8d">ADC_REFERENCE</a>&#160;</td>
          <td class="paramname"><em>type</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set the voltage reference for all ADCs, default is vcc. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>Any of <a class="el" href="namespace_a_d_c__settings.html#a5f42fd9e070e88475ec7cee39bbf4f8d">ADC_REFERENCE</a> </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_a_d_c_8h_source.html#l00111">111</a> of file <a class="el" href="_a_d_c_8h_source.html">ADC.h</a>.</p>

</div>
</div>
<a id="a6b8f4f571b7729d9da50b72ab93ec023"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6b8f4f571b7729d9da50b72ab93ec023">&#9670;&nbsp;</a></span>setResolution()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ADC::setResolution </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>bits</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Change the resolution for all ADCs. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">bits</td><td>is the number of bits of resolution. For single-ended measurements: 8, 10, 12 or 16 bits. For differential measurements: 9, 11, 13 or 16 bits. If you want something in between (11 bits single-ended for example) select the immediate higher and shift the result one to the right. Whenever you change the resolution, change also the comparison values (if you use them). </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_a_d_c_8h_source.html#l00127">127</a> of file <a class="el" href="_a_d_c_8h_source.html">ADC.h</a>.</p>

</div>
</div>
<a id="ac7dad7a76bdd4965eced74692a5de886"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac7dad7a76bdd4965eced74692a5de886">&#9670;&nbsp;</a></span>setSamplingSpeed()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ADC::setSamplingSpeed </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespace_a_d_c__settings.html#af0d80a1aae7288f77b13f0e01d9da0d3">ADC_SAMPLING_SPEED</a>&#160;</td>
          <td class="paramname"><em>speed</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Sets the sampling speed for all ADCs. </p>
<p>Increase the sampling speed for low impedance sources, decrease it for higher impedance ones. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">speed</td><td>can be any of the <a class="el" href="namespace_a_d_c__settings.html#af0d80a1aae7288f77b13f0e01d9da0d3">ADC_SAMPLING_SPEED</a>. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_a_d_c_8h_source.html#l00154">154</a> of file <a class="el" href="_a_d_c_8h_source.html">ADC.h</a>.</p>

</div>
</div>
<a id="ad592f87ec644457b5056ae41c645ac0a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad592f87ec644457b5056ae41c645ac0a">&#9670;&nbsp;</a></span>startContinuous()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ADC::startContinuous </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>pin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8_t&#160;</td>
          <td class="paramname"><em>adc_num</em> = <code>-1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Starts continuous conversion on the pin. </p>
<p>It returns as soon as the <a class="el" href="class_a_d_c.html">ADC</a> is set, use <a class="el" href="class_a_d_c.html#a749efc928425a1eea18341ccfafd1819" title="Reads the analog value of a continuous conversion.">analogReadContinuous()</a> to read the value. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pin</td><td>can be any of the analog pins </td></tr>
    <tr><td class="paramname">adc_num</td><td>ADC_X <a class="el" href="class_a_d_c.html">ADC</a> module </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if the pin is valid, false otherwise. </dd></dl>

<p class="definition">Definition at line <a class="el" href="_a_d_c_8cpp_source.html#l00542">542</a> of file <a class="el" href="_a_d_c_8cpp_source.html">ADC.cpp</a>.</p>

</div>
</div>
<a id="a113479488fae5f5407f884dd95fbec72"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a113479488fae5f5407f884dd95fbec72">&#9670;&nbsp;</a></span>startSingleRead()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ADC::startSingleRead </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>pin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8_t&#160;</td>
          <td class="paramname"><em>adc_num</em> = <code>-1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Starts an analog measurement on the pin and enables interrupts. </p>
<p>It returns immediately, get value with <a class="el" href="class_a_d_c.html#aee7423bfcbb03465bb0bd1e3c6474452" title="Reads the analog value of a single conversion.">readSingle()</a>. If this function interrupts a measurement, it stores the settings in adc_config </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pin</td><td>can be any of the analog pins </td></tr>
    <tr><td class="paramname">adc_num</td><td>ADC_X <a class="el" href="class_a_d_c.html">ADC</a> module </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if the pin is valid, false otherwise. </dd></dl>

<p class="definition">Definition at line <a class="el" href="_a_d_c_8cpp_source.html#l00407">407</a> of file <a class="el" href="_a_d_c_8cpp_source.html">ADC.cpp</a>.</p>

</div>
</div>
<a id="af50305b76bf8798da1dd26f654b4f0e3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af50305b76bf8798da1dd26f654b4f0e3">&#9670;&nbsp;</a></span>startSynchronizedContinuous()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ADC::startSynchronizedContinuous </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>pin0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>pin1</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Starts a continuous conversion in both ADCs simultaneously. </p>
<p>Use readSynchronizedContinuous to get the values </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pin0</td><td>pin in ADC0 </td></tr>
    <tr><td class="paramname">pin1</td><td>pin in ADC1 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if the pins are valid, false otherwise.</dd></dl>
<p>Use readSynchronizedContinuous to get the values </p>

<p class="definition">Definition at line <a class="el" href="_a_d_c_8cpp_source.html#l01028">1028</a> of file <a class="el" href="_a_d_c_8cpp_source.html">ADC.cpp</a>.</p>

</div>
</div>
<a id="acbdb0f3a7419e5a0cd8b2c031dc8b9d7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acbdb0f3a7419e5a0cd8b2c031dc8b9d7">&#9670;&nbsp;</a></span>startSynchronizedSingleRead()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ADC::startSynchronizedSingleRead </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>pin0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>pin1</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Starts an analog measurement at the same time on the two <a class="el" href="class_a_d_c.html">ADC</a> modules. </p>
<p>It returns immediately, get value with <a class="el" href="class_a_d_c.html#a38d941542bbdbc20c1b9e26a5051094a" title="Reads the analog value of a single conversion.">readSynchronizedSingle()</a>. If this function interrupts a measurement, it stores the settings in adc_config </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pin0</td><td>pin in ADC0 </td></tr>
    <tr><td class="paramname">pin1</td><td>pin in ADC1 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if the pins are valid, false otherwise. </dd></dl>

<p class="definition">Definition at line <a class="el" href="_a_d_c_8cpp_source.html#l00905">905</a> of file <a class="el" href="_a_d_c_8cpp_source.html">ADC.cpp</a>.</p>

</div>
</div>
<a id="a436e52cf82ca735f636899de670a2f0c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a436e52cf82ca735f636899de670a2f0c">&#9670;&nbsp;</a></span>stopContinuous()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ADC::stopContinuous </td>
          <td>(</td>
          <td class="paramtype">int8_t&#160;</td>
          <td class="paramname"><em>adc_num</em> = <code>-1</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Stops continuous conversion. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">adc_num</td><td>ADC_X <a class="el" href="class_a_d_c.html">ADC</a> module </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_a_d_c_8cpp_source.html#l00674">674</a> of file <a class="el" href="_a_d_c_8cpp_source.html">ADC.cpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="ab790c1b44b90ff497cbf3e88f4580be8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab790c1b44b90ff497cbf3e88f4580be8">&#9670;&nbsp;</a></span>channel2sc1aADC0</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const uint8_t ADC::channel2sc1aADC0</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">= {</div>
<div class="line">    </div>
<div class="line">    7, 8, 12, 11, 6, 5, 15, 0, 13, 14, 1, 2, 31, 31, </div>
<div class="line">    7, 8, 12, 11, 6, 5, 15, 0, 13, 14,               </div>
<div class="line">    1, 2, 31, 31                                     </div>
<div class="line">}</div>
</div><!-- fragment -->
<p>Translate pin number to SC1A nomenclature. </p>

<p class="definition">Definition at line <a class="el" href="_a_d_c_8h_source.html#l00586">586</a> of file <a class="el" href="_a_d_c_8h_source.html">ADC.h</a>.</p>

</div>
</div>
<a id="a756fe8fa6da7ab09cde1f7b27aeffd43"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a756fe8fa6da7ab09cde1f7b27aeffd43">&#9670;&nbsp;</a></span>channel2sc1aADC1</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const uint8_t ADC::channel2sc1aADC1</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">= {</div>
<div class="line">    </div>
<div class="line">    7, 8, 12, 11, 6, 5, 15, 0, 13, 14, 31, 31, 3, 4, </div>
<div class="line">    7, 8, 12, 11, 6, 5, 15, 0, 13, 14,               </div>
<div class="line">    31, 31, 3, 4                                     </div>
<div class="line">}</div>
</div><!-- fragment -->
<p>Translate pin number to SC1A nomenclature. </p>

<p class="definition">Definition at line <a class="el" href="_a_d_c_8h_source.html#l00589">589</a> of file <a class="el" href="_a_d_c_8h_source.html">ADC.h</a>.</p>

</div>
</div>
<a id="aa3fc624721f8108ef8b77b45a857bdc6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa3fc624721f8108ef8b77b45a857bdc6">&#9670;&nbsp;</a></span>sc1a2channelADC0</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const uint8_t ADC::sc1a2channelADC0</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">= {</div>
<div class="line">    </div>
<div class="line">    21, 24, 25, 0, 0, 19, 18, 14, 15, 0, 0, 17, 16, 22,</div>
<div class="line">    23, 20, 0, 0, 0, 0, 0, 0, </div>
<div class="line">    0, 0, 0, 0, 0, 0          </div>
<div class="line">}</div>
</div><!-- fragment -->
<p>Translate pin number to SC1A nomenclature for differential pins. </p>

<p class="definition">Definition at line <a class="el" href="_a_d_c_8h_source.html#l00593">593</a> of file <a class="el" href="_a_d_c_8h_source.html">ADC.h</a>.</p>

</div>
</div>
<a id="ad1ed91f3ef9e283133455802c37c6501"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad1ed91f3ef9e283133455802c37c6501">&#9670;&nbsp;</a></span>sc1a2channelADC1</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const uint8_t ADC::sc1a2channelADC1</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">= {</div>
<div class="line">    </div>
<div class="line">    21, 0, 0, 26, 27, 19, 18, 14, 15, 0, 0, 17, 16, 22, </div>
<div class="line">    23, 20, 0, 0, 0, 0, 0, 0,                           </div>
<div class="line">    0, 0, 0, 0, 0, 0                                    </div>
<div class="line">}</div>
</div><!-- fragment -->
<p>Translate pin number to SC1A nomenclature for differential pins. </p>

<p class="definition">Definition at line <a class="el" href="_a_d_c_8h_source.html#l00596">596</a> of file <a class="el" href="_a_d_c_8h_source.html">ADC.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="_a_d_c_8h_source.html">ADC.h</a></li>
<li><a class="el" href="_a_d_c_8cpp_source.html">ADC.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_a_d_c.html">ADC</a></li>
    <li class="footer">Generated on Tue Nov 29 2022 23:16:43 for ADC by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
